name: testsPCE run_id: commands[0] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin:/opt/pyenv/bin:/tmp/venv-OOHK/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PIP_EXTRA_INDEX_URL: https://gitlab.com/api/v4/projects/33090323/packages/pypi/simple env PYTHONHASHSEED: 1692692566 env PYTHONIOENCODING: utf-8 env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE env TOX_ENV_NAME: testsPCE env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE metadata pid: 4318 cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin/*:launch_tests.sh cmd: ./launch_tests.sh pce exit_code: 1 pytest -q transportpce_tests/pce/test01_pce.py .................... [100%] 20 passed in 127.09s (0:02:07) pytest -q transportpce_tests/pce/test02_pce_400G.py ............ [100%] 12 passed in 46.95s pytest -q transportpce_tests/pce/test03_gnpy.py EF..FFFF [100%] ==================================== ERRORS ==================================== _______ ERROR at setup of TransportGNPYtesting.test_00_load_port_mapping _______ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False try: TOPO_CLLINET_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "gnpy", "clliNetwork.json") with open(TOPO_CLLINET_FILE, 'r', encoding='utf-8') as topo_cllinet: cls.topo_cllinet_data = topo_cllinet.read() TOPO_ORDNET_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "gnpy", "openroadmNetwork.json") with open(TOPO_ORDNET_FILE, 'r', encoding='utf-8') as topo_ordnet: cls.topo_ordnet_data = topo_ordnet.read() TOPO_ORDTOPO_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "gnpy", "openroadmTopology.json") with open(TOPO_ORDTOPO_FILE, 'r', encoding='utf-8') as topo_ordtopo: cls.topo_ordtopo_data = topo_ordtopo.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "gnpy", "gnpy_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") with open('gnpy.log', 'w', encoding='utf-8') as outfile: print('starting GNPy REST server...') # pylint: disable=consider-using-with test_utils.process_list.append(subprocess.Popen( ['gnpy-rest'], stdout=outfile, stderr=outfile, stdin=None)) > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test03_gnpy.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:231: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting GNPy REST server... starting OpenDaylight... starting KARAF TransportPCE build... Searching for patterns in karaf.log... Pattern not found after 100 seconds! OpenDaylight failed to start ! =================================== FAILURES =================================== _______________ TransportGNPYtesting.test_01_connect_clliNetwork _______________ self = def test_01_connect_clliNetwork(self): response = test_utils.put_ietf_network('clli-network', self.topo_cllinet_data) > self.assertIn(response['status_code'], (requests.codes.ok, requests.codes.no_content)) E AssertionError: 404 not found in (200, 204) transportpce_tests/pce/test03_gnpy.py:124: AssertionError ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting GNPy REST server... starting OpenDaylight... starting KARAF TransportPCE build... Searching for patterns in karaf.log... Pattern found! OpenDaylight started ! ________ TransportGNPYtesting.test_04_path_computation_FeasibleWithPCE _________ self = def test_04_path_computation_FeasibleWithPCE(self): response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/pce/test03_gnpy.py:142: AssertionError __ TransportGNPYtesting.test_05_path_computation_FoundByPCE_NotFeasibleByGnpy __ self = def test_05_path_computation_FoundByPCE_NotFeasibleByGnpy(self): self.path_computation_input_data["service-name"] = "service-2" self.path_computation_input_data["service-handler-header"]["request-id"] = "request-2" self.path_computation_input_data["hard-constraints"] =\ {"include": {"node-id": ["OpenROADM-2", "OpenROADM-3", "OpenROADM-4"]}} response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/pce/test03_gnpy.py:166: AssertionError _____ TransportGNPYtesting.test_06_path_computation_FoundByPCE_FoundByGNPy _____ self = def test_06_path_computation_FoundByPCE_FoundByGNPy(self): self.path_computation_input_data["service-name"] = "service-3" self.path_computation_input_data["service-handler-header"]["request-id"] = "request-3" self.path_computation_input_data["service-z-end"]["node-id"] = "XPONDER-4" self.path_computation_input_data["hard-constraints"] =\ {"include": {"node-id": ["OpenROADM-2", "OpenROADM-3"]}} response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/pce/test03_gnpy.py:194: AssertionError __ TransportGNPYtesting.test_07_path_computation_FoundByPCE_NotFeasibleByGnpy __ self = def test_07_path_computation_FoundByPCE_NotFeasibleByGnpy(self): self.path_computation_input_data["service-name"] = "service-4" self.path_computation_input_data["service-handler-header"]["request-id"] = "request-4" self.path_computation_input_data["service-a-end"]["service-rate"] = "400" self.path_computation_input_data["service-z-end"]["service-rate"] = "400" self.path_computation_input_data["service-z-end"]["clli"] = "Node4" self.path_computation_input_data["hard-constraints"] =\ {"include": {"node-id": ["OpenROADM-3", "OpenROADM-2", "OpenROADM-5"]}} response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/pce/test03_gnpy.py:222: AssertionError --------------------------- Captured stdout teardown --------------------------- all processes killed =========================== short test summary info ============================ FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_01_connect_clliNetwork FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_04_path_computation_FeasibleWithPCE FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_05_path_computation_FoundByPCE_NotFeasibleByGnpy FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_06_path_computation_FoundByPCE_FoundByGNPy FAILED transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_07_path_computation_FoundByPCE_NotFeasibleByGnpy ERROR transportpce_tests/pce/test03_gnpy.py::TransportGNPYtesting::test_00_load_port_mapping 5 failed, 2 passed, 1 error in 125.45s (0:02:05)